package net.atomarrow.test.domain;

import java.util.Date;

import net.atomarrow.db.annotation.FieldType;
import net.atomarrow.db.annotation.NotCreate;
import net.atomarrow.db.enums.Type;

public class TbUser extends TbBaseUser{

	private int id;
	@FieldType(type=Type.TEXT)
	private String username;
	private int sex;
	private String addr;
	private Date birthday;
	private double money;
	@NotCreate
	private int a;
	@NotCreate
	private int b;
	@NotCreate
	private int c;
	@NotCreate
	private int d;
	@NotCreate
	private int e;

	public TbUser(){
		
	}
	
	public TbUser(int id, int sex) {
		super();
		this.id = id;
		this.sex = sex;
	}
	public TbUser(String username, int sex) {
		super();
		this.username = username;
		this.sex = sex;
	}


	public Date getBirthday() {
		return birthday;
	}


	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}


	
	public TbUser(String username,int sex,String addr){
		this.username=username;
		this.sex=sex;
		this.addr = addr;
	}
	public TbUser(int id,String username,int sex,String addr){
		this.id=id;
		this.username=username;
		this.sex=sex;
		this.addr = addr;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public static void main(String[] args) {
		new TbUser().generateTable();
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public int getA() {
		return a;
	}

	public void setA(int a) {
		this.a = a;
	}

	public int getB() {
		return b;
	}

	public void setB(int b) {
		this.b = b;
	}

	public int getC() {
		return c;
	}

	public void setC(int c) {
		this.c = c;
	}

	public int getD() {
		return d;
	}

	public void setD(int d) {
		this.d = d;
	}

	public int getE() {
		return e;
	}

	public void setE(int e) {
		this.e = e;
	}

}
